package com.heima.model.behavior.dtos;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

@Data
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(value = "阅读DTO")
public class ReadBehaviorDto implements Serializable {

    private static final long serialVersionUID = 1L;
    @NotBlank(message = "文章ID不能为空")
    @ApiModelProperty(value = "文章ID")
    private long articleId;

    @ApiModelProperty(value = "阅读次数，默认1")
    private int count = 1;
}
